package com.guoxin.decorator;

public class CofferBar {

	public static void main(String[] args) {
		Seasoning milk = new Seasoning("牛奶", 3f);
		Seasoning chocolate = new Seasoning("巧克力", 1.0f);
		
		Order latte = new Coffee("拿铁咖啡", 2.0f);
		latte = new DrinkDecorator(milk, latte);
		latte = new DrinkDecorator(milk, latte);
		System.out.println(latte.desc());
		System.out.println(latte.cost());

		System.out.println("===========");
		
		Order americano = new Coffee("美式咖啡", 2.0f);
		americano = new DrinkDecorator(chocolate, americano);
		System.out.println(americano.desc());
		System.out.println(americano.cost());
	}

}
